package com.pepository.dao;

import com.aop.Detach;
import com.model.ExplainDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ExplainDetailRepository extends JpaRepository<ExplainDetail, Long> {

    @Detach
    @Override
    <S extends ExplainDetail> S save(S entity);

    @Detach
    @Override
    <S extends ExplainDetail> List<S> saveAll(Iterable<S> entities);

    List<ExplainDetail> findAllByWordInfoIdOrderById(Long wordInfoId);

    @Detach
    @Override
    ExplainDetail getOne(Long aLong);
}
